package mystudy
import "fmt"
// 实现多个接口
// 接口1
type Persion2 interface{
	eat()
}
// 接口2
type Animal2 interface{
	say()
}
// 结构体实现
type Student6 struct{

}
// 实现接口1
func(s Student6)eat(){
	fmt.Println("student eat")
}
// 实现接口2
func(s Student6)say(){
	fmt.Println("student say")
}

// 实现接口2
func(s Student6) SayHello(){
	fmt.Println("Student say hello")
}
func DemoMulInterface(){
	var st Student6
	var p2 Persion2
	var p1 Persion
	var a Animal2
	p2 = st
	a = st
	p1 = st
	p2.eat()
	a.say()
	p1.SayHello()
}